function res = ReadVariable(path, ind, var_name)
    if length(ind) == 1
        res = (double(h5read([path '/run_' num2str(ind) '.h5'],['/VariableValues/',var_name])));
    else
        res = zeros(1,length(ind));
        for k = 1:length(ind)
            res(k) = (double(h5read([path '/run_' num2str(ind(k)) '.h5'],['/VariableValues/',var_name])));
        end
    end
end